using System.Collections;
using System.Linq;

namespace FindNumberswithEvenNumberofDigits
{
    public class Solution
    {
        public int FindNumbers(int[] nums)
        {
            return nums.Count(n => CalculateDigitCount(n) % 2 == 0);
        }

        private int CalculateDigitCount(int n)
        {
            int sum = 0;
            while (n > 0)
            {
                sum++;
                n /= 10;
            }

            return sum;
        }
    }
}